package com.alxy.day1.service;

import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 爱莉希雅
 * @version java 17
 */
@SuppressWarnings({"all"})
public interface ProductService {
    boolean purchaseProductOptimistically(Long id, int quantity);
    boolean purchaseProductPessimistically(Long id, int quantity);
}
